:root {
    --primary-color: #2C5F2D;
    --secondary-color: #97BC62;
    --text-dark: #2C3E50;
    --bg-light: #F9F8F6;
}

body {
    font-family: 'Inter', sans-serif;
}

.nav-link {
    @apply text-gray-600 font-medium relative transition-colors duration-300;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover,
.nav-link-active {
    @apply text-gray-900;
}

.nav-link:hover::after,
.nav-link-active::after {
    width: 100%;
}

.btn {
    @apply px-6 py-3 font-semibold rounded-md transition-transform duration-200 ease-in-out transform hover:scale-105 shadow-md;
}

.btn-primary {
    @apply bg-[var(--primary-color)] text-white hover:bg-[#214a22];
}

.btn-secondary {
    @apply bg-white/90 text-[var(--primary-color)] backdrop-blur-sm hover:bg-white;
}

.btn-primary-outline {
    @apply bg-transparent border-2 border-[var(--secondary-color)] text-[var(--secondary-color)] hover:bg-[var(--secondary-color)] hover:text-white;
}

.btn-secondary-outline {
     @apply bg-transparent border-2 border-white text-white hover:bg-white hover:text-[var(--primary-color)];
}


.ingredient-tag {
    @apply bg-green-100 text-green-800 text-sm font-medium px-3 py-1 rounded-full;
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.modal-container {
    @apply fixed inset-0 bg-black/60 z-50 flex items-center justify-center p-4 transition-opacity duration-300;
}

.modal-content {
    @apply bg-white rounded-lg shadow-xl p-8 w-full max-w-md relative transform transition-transform duration-300 scale-95;
    animation: zoomIn 0.3s forwards;
}

.modal-container:not(.hidden) .modal-content {
    @apply scale-100;
}

.modal-close-btn {
    @apply absolute top-3 right-4 text-3xl text-gray-500 hover:text-gray-800 transition-colors;
}

.input-field {
    @apply mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-[var(--primary-color)] focus:border-[var(--primary-color)];
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
